<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>data</title>
    <script src="https://cdn.jsdelivr.net/npm/vue"></script>
    <script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
</head>
<body>
<div id="app">
    <p>{{ foo }}</p>
    <!-- 这里的 `foo` 不会更新！ -->
    <button v-on:click="foo = 'baz'">Change it</button>
</div>
</body>
<script>
    var obj = {
        foo : 'bar1'
    }

    Object.freeze(obj);

    new Vue({
        el:'#app',
        data:obj
    })

</script>
</html>